QuickOPC User's Guide and Reference
UAApplicationElement Constructor(String,String,IEnumerable<String>)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Discovery Namespace > UAApplicationElement Class > UAApplicationElement Constructor : UAApplicationElement Constructor(String,String,IEnumerable<String>)
The name of the Server (specified in the mDNS announcement).
The URL of the discovery Endpoint.
The Server capabilities supported by the Server.
Initializes a new instance of the class.
Syntax
'Declaration
 
Public Function New( _
   ByVal serverName As String, _
   ByVal discoveryUrlString As String, _
   ByVal serverCapabilities As IEnumerable(Of String) _
)
'Usage
 
Dim serverName As String
Dim discoveryUrlString As String
Dim serverCapabilities As IEnumerable(Of String)
 
Dim instance As New UAApplicationElement(serverName, discoveryUrlString, serverCapabilities)

Parameters

serverName
The name of the Server (specified in the mDNS announcement).
discoveryUrlString
The URL of the discovery Endpoint.
serverCapabilities
The Server capabilities supported by the Server.
Exceptions
ExceptionDescription

A null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also